package com.ruoyi.project.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.LiveRoomResultMapper;
import com.ruoyi.project.system.domain.LiveRoomResult;
import com.ruoyi.project.system.service.ILiveRoomResultService;

/**
 * 对局结果Service业务层处理
 * 
 * @author david
 * @date 2025-06-11
 */
@Service
public class LiveRoomResultServiceImpl implements ILiveRoomResultService 
{
    @Autowired
    private LiveRoomResultMapper liveRoomResultMapper;

    /**
     * 查询对局结果
     * 
     * @param liveRoomId 对局结果主键
     * @return 对局结果
     */
    @Override
    public LiveRoomResult selectLiveRoomResultByLiveRoomId(String liveRoomId)
    {
        return liveRoomResultMapper.selectLiveRoomResultByLiveRoomId(liveRoomId);
    }

    /**
     * 查询对局结果列表
     * 
     * @param liveRoomResult 对局结果
     * @return 对局结果
     */
    @Override
    public List<LiveRoomResult> selectLiveRoomResultList(LiveRoomResult liveRoomResult)
    {
        return liveRoomResultMapper.selectLiveRoomResultList(liveRoomResult);
    }

    /**
     * 新增对局结果
     * 
     * @param liveRoomResult 对局结果
     * @return 结果
     */
    @Override
    public int insertLiveRoomResult(LiveRoomResult liveRoomResult)
    {
        return liveRoomResultMapper.insertLiveRoomResult(liveRoomResult);
    }

    /**
     * 修改对局结果
     * 
     * @param liveRoomResult 对局结果
     * @return 结果
     */
    @Override
    public int updateLiveRoomResult(LiveRoomResult liveRoomResult)
    {
        return liveRoomResultMapper.updateLiveRoomResult(liveRoomResult);
    }

    /**
     * 批量删除对局结果
     * 
     * @param liveRoomIds 需要删除的对局结果主键
     * @return 结果
     */
    @Override
    public int deleteLiveRoomResultByLiveRoomIds(String[] liveRoomIds)
    {
        return liveRoomResultMapper.deleteLiveRoomResultByLiveRoomIds(liveRoomIds);
    }

    /**
     * 删除对局结果信息
     * 
     * @param liveRoomId 对局结果主键
     * @return 结果
     */
    @Override
    public int deleteLiveRoomResultByLiveRoomId(String liveRoomId)
    {
        return liveRoomResultMapper.deleteLiveRoomResultByLiveRoomId(liveRoomId);
    }
}
